package cn.zwt.wolf.domain.position;

import cn.zwt.wolf.domain.base.BaseDomain;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by zhangwt on 16-3-13.
 */
@Entity
@Table(name = "position")
@Proxy(lazy = false)
public class Position extends BaseDomain {
    public static final Integer POSITION_TYPE_OWN=0;
    public static final Integer POSITION_TYPE_RECOMMEND=1;
    public static final Integer POSITION_TYPE_INTERFACE=2;
    public static final Integer POSITION_TYPE_INTERACT=3;
    public static final Integer POSITION_TYPE_POSITION_CONTAINER=4;
    public static final Integer POSITION_TYPE_SCHEUDLE=5;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;

    @Column(name = "name")
    private String name;

    @Column(name = "type")
    private int type;

    @Column(name = "title")
    private String title;

    @Column(name = "source_code")
    private String sourceCode;

    @Column(name = "publish_time")
    private Date publishTime;

    @Column(name = "orderType")
    private int orderType;

    @Column(name = "url")
    private String url;

    @Column(name = "contentType")
    private String contentType;
    @Column(name = "parentId")
    private int parentId;

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
}
